Generate, evaluate, and self-evolve a complete mini-application from a single text prompt. The AWorld Agent orchestrates the full flow: automatic creation → automatic evaluation → automatic optimization. No manual intervention is required once you submit your prompt.
- A runnable mini-application (e.g. web app) generated from your description
- Automatic evaluation and self-evolution until your quality criteria are met
- One command from prompt to product; the entire loop runs autonomously
This recipe reproduces the English word learning app flow shown in the main AWorld CLI examples.
Use this prompt (or adapt the goal and score threshold to your needs):
help me create an English word learning app, with a UI quality score over 0.9
The Evaluator agent scores the generated app using objective criteria defined by a Skill. For this recipe we use the official AWorld Skill:
- Skill:
app_evaluator(shipped with the repo)
If you have already installed AWorld and AWorld-CLI, the Evaluator loads this official skill by default. You do not need to install or configure the skill separately for this flow.
- Create — The Developer agent turns your prompt into a runnable app (e.g. HTML/JS).
- Evaluate — The Evaluator runs the app_evaluator skill (e.g. UI quality score).
- Optimize — If the score is below your target (e.g. 0.9), AWorld instructs the Developer to fix issues; the loop repeats until the criteria are met.
All steps run automatically; you only need to start the CLI and submit the prompt.
-
Install and configure AWorld CLI
- Follow Installation.
- Complete Configuration in your working directory.
-
Launch the CLI
In your working directory, run:
aworld-cli-
Enter the app-creation flow
Choose or enter the flow that creates an app from a prompt. -
Submit the prompt
Paste or type:
help me create an English word learning app, with a UI quality score over 0.9
- Let it run
The agent will generate the app, evaluate it with the official Evaluator skill, and iterate until the UI quality score meets your target. When done, run or deploy the output as needed.
For a reusable workspace setup, keep the same .env or interactive CLI configuration across runs.
When you want a stable machine-readable artifact for CI or post-processing, use the standalone evaluator command against the generated app or artifact:
aworld-cli evaluator --target ./artifact --output ./report.json
aworld-cli evaluator --print-report-schema
aworld-cli evaluator --validate-report ./report.jsonThe emitted report includes report_format, normalized metrics, structured gate, and automation fields. That makes it suitable for quality gates, regression checks, or downstream dashboards without parsing freeform evaluator text.